from django.urls import path
from practical_training import views
from practical_training.test_users import UserDetail, Alter, Delete, Users


urlpatterns = [
	path('polls/', views.Test1.as_view()),
	path('userdetail/', UserDetail.as_view()),
	path('users/', Users.as_view()),
	path('alter/', Alter.as_view()),
	path('delete/', Delete.as_view()),
	path('getcate/', views.get_cate),		# 查看分类
	path('getdatainfo/', views.GetDataInfo.as_view()),	# 查看分类字段
	path('get_cate/', views.GetCate.as_view()),		# 查看工单分类
	path('getcatedetail/', views.GetCateDetail.as_view()),	# 查看工单详情
	path('getapprover/', views.GetApprover.as_view()),		# 获取审批人
	path('workorder/', views.WorkForm.as_view()),			# 获取表单数据

	path('getworkdetail/', views.GetWorkDetail.as_view()),		# 查看该登录用户的工单详情
	path('workorderinfo/', views.WorkOrderInfo.as_view()),		# 查看工单表信息
	path('workalist/', views.WorkAlist.as_view()),				# 读取接收审批结果
	path('getworkstatus/', views.GetWorkStatus.as_view()),		# 获取工单表信息状态
	path('refuse/', views.Refuse.as_view()),					# 拒绝审批
	path('approver/', views.Approver.as_view()),				# 并审
	path('message/', views.MessageView.as_view()),				# 消息提示
	path('order/', views.MessageOrder.as_view()),				# 排序展示
	path('websocketlink/', views.websocketlink),				# websocket
	path('sendmessage/', views.sendmessage),					# 发送消息

]


# 钉钉自定义机器人密钥:SEC47c6961ca1603d25cc9f615b261feada2535d004be830b40b7841ac833a74791
# 回调token:https://oapi.dingtalk.com/robot/send?access_token=2c2bad550fcc21ddc8a4aab076853bf50c27c2cfbec0d67dedfe526022a95056


